package cn.rongdao.jrkabao.model.information.apply;

import com.mifengkong.frtools.http.request.HttpFunction;

import cn.rongdao.jrkabao.dao.UserDao;
import cn.rongdao.jrkabao.model.api.BaseSuDaiModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by jack on 17/5/11
 */

public class ZhimaUrlModel extends BaseSuDaiModel {

    public static ZhimaUrlModel getInstance() {
        return getPresent(ZhimaUrlModel.class);
    }

    public void execute(Observer<String> observer) {
        addParamStrings("userID", UserDao.getInstance().getUserId());
        Observable<String> observable = mServletApi.getZhiMaUrl(mParams).map(new HttpFunction<String>());
        toSubscribe(observable, observer);
    }
}
